<html>
<head>

<title>AnimatedPng Demo</title>

<script type="text/javascript">

	var djConfig = {
		//debugAtAllCosts: true,
		isDebug: true
	};

</script>
<script type="text/javascript" src="../../dojo.js"></script>
<script language="JavaScript" type="text/javascript">

	dojo.require("dojo.widget.AnimatedPng");
	//dojo.hostenv.writeIncludes();

	dojo.addOnLoad(function(){
		var params = {src: "images/animatedpng_static.gif", aniSrc: "images/animatedpng_frames.gif", width: 20, height: 20, interval: 50};
		var widget = dojo.widget.createWidget("AnimatedPng", params, document.getElementById("pngContainer"));	
	});
</script>
<style>

</style>
</head>
<body>
<h3>Instantiation from Markup:</h3>

<p>PNGs have great tranparency, but lack animation. This widget lets you point an img tag at an animated gif for graceful degrading, while letting you specify a png containing a grid of cells to animate between.</p>

<img dojoType="AnimatedPng"
	src="images/animatedpng_static.gif"
	aniSrc="images/animatedpng_frames.gif"
	width="20"
	height="20"
	interval="50"
/>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam facilisis enim. Pellentesque in elit et lacus euismod dignissim. Aliquam dolor pede, convallis eget, dictum a, blandit ac, urna. Pellentesque sed nunc ut justo volutpat egestas. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. In erat. Suspendisse potenti. Fusce faucibus nibh sed nisi. Phasellus faucibus, dui a cursus dapibus, mauris nulla euismod velit, a lobortis turpis arcu vel dui. Pellentesque fermentum ultrices pede. Donec auctor lectus eu arcu. Curabitur non orci eget est porta gravida. Aliquam pretium orci id nisi. Duis faucibus, mi non adipiscing venenatis, erat urna aliquet elit, eu fringilla lacus tellus quis erat. Nam tempus ornare lorem. Nullam feugiat.</p>

<h3>Instantiation from Script:</h3>
<div id="pngContainer"></div>
</body>
</html>
